package com.mm.dds.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
@Repository
public interface CompanyListMapper {

    List getCompanyList() throws DataAccessException;

    void insertCompany(Map map) throws DataAccessException;

    Map selectLastCompanyId() throws DataAccessException;

    void createCompanyDb(@Param("companyDbName")String companyDbName) throws DataAccessException;

    void createCompanyDbTable(@Param("company_info")String company_info) throws DataAccessException;

    void deleteCompanyById(@Param("companyId") int companyId) throws DataAccessException;

    void deleteCompanyDbByName(@Param("companyName") String companyName) throws DataAccessException;
}
